<include file="Admin@Public/header" /> 
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <ol class="breadcrumb">
      <li>网站内容</li>
      <li>在线留言</li>
      <li class="active">列表</li>
    </ol>
  <div class="table-responsive">
         <table class="table">
              <thead>
                <tr>
                  <th class="col-md-1">#</th>
                  <th class="col-md-1">姓名</th>
                  <th class="col-md-1">电话</th>
                  <th class="col-md-2">邮箱</th>
                  <th class="col-md-3">留言内容</th>
                  <th class="col-md-1">回复</th>
                  <th class="col-md-1">状态</th>
                  <th class="col-md-2">操作</th>
                </tr>
              </thead>
            <tbody>
        <volist name="list" id="vo">
              <tr>
                <td><input type="checkbox" name="checkbox_id" value="{$vo.id}"></td>
                <td>{$vo.nickname}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.email}</td>
                <td>{$vo.msg}</td>
                <td>
                   <switch name="vo.iscall"> 
                    <case value="N">未回复</case>
                    <case value="Y">已回复</case>
                  </switch>
                </td>
                 <td>
                   <switch name="vo.status"> 
                    <case value="0"><i class="icon-lock"></i> 隐藏</case>
                    <case value="1"><i class="icon-unlock"></i>显示</case>
                    <default />
                  </switch>
                </td>    
                <td> 
      <a class="btn btn-default btn-xs" href="__URL__/edit?id={$vo.id}"><i class="icon-edit"></i></a>
    <notempty name="vo.status">
      <a class="btn btn-warning btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=0','确定设置为隐藏？')"><i class="icon-lock"></i></a>
    <else/>
      <a class="btn btn-success btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=1','确定设置为显示？')"><i class="icon-unlock"></i></a>
    </notempty>
      <a class="btn btn-danger btn-xs" href="javascript:checkDialog('__URL__/delete?id={$vo.id}','确定选择彻底删除？')"><i class="icon-trash"></i></a>
                </td>
              </tr>
        </volist> 
            </tbody>
            <tfoot>
              <tr class="info">
               <include file="opreat"/>
              </tr>
            </tfoot> 
          </table>
      </div>
       
     
</div>

<include file="Admin@Public/script_list" />
<include file="Admin@Public/footer" />
   
